package com.yonyou.brigade.controller;

//import com.alibaba.dubbo.config.annotation.Reference;
import com.yonyou.brigade.service.IBrigadePublicService;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

import java.util.HashMap;
import java.util.Map;

@RequestMapping("/test")
//@RequestMapping("/bri")
@RestController
public class TestClientController {

//    @Reference(version = "1.0.0")
//    IBrigadePublicService iBrigadePublicService;
//
//    @RequestMapping(value = "/orderInfos",method = RequestMethod.POST)
//    public Map getOrderInfos(@RequestParam Map params)
//    {
//        Map result=new HashMap();
//        String type=params.get("type").toString();
//        if("hotel".equals(type)) {
//            result = iBrigadePublicService.getBriHotelRoomDTOList(params);
//        }
//        else {
//            result.put("code","0");
//            result.put("information",null);
//        }
//        return result;
//    }
//
//    @RequestMapping(value = "/menuOptions",method = RequestMethod.POST)
//    public Map getMenuOptions(@RequestParam Map params)
//    {
//        Map result=iBrigadePublicService.getMenuOptions(params);
//        return result;
//    }
//
//    @RequestMapping(value = "/1")
//    public String test(){
//        return iBrigadePublicService.invokeService(null);
//    }
//
//    @RequestMapping("/login")
//    public String login(){
//        return iBrigadePublicService.loginUrl("ft9fbcrw","0001A210000000003ADC","15901062973","rtpnr","air","h5","");
//    }
}
